/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cepicam.src.view;

import java.awt.BorderLayout;

import javax.swing.DefaultListModel;
import javax.swing.JPanel;

import cepicam.src.controller.CtrlAutoEcole;
import cepicam.src.controller.CtrlUtilisateur;
import cepicam.src.domain.AutoEcole;
import cepicam.src.domain.Utilisateur;

/**
 *
 * @author Kalimera
 */
public class PanelAdmin extends javax.swing.JPanel {

    /**
     * Creates new form PanelAdmin
     */
    public PanelAdmin(PanelAdminOngletUtilisateur vueUser, PanelAdminOngletAutoEcole vueAE, PanelAdminOngletRappel vueRap) {
    	jpRappels = vueRap;
    	panelTest = vueUser;
    	panelAutoEcole = vueAE;
        initComponents();
      
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jLabelTitre = new javax.swing.JLabel();
        jtpAdmin = new javax.swing.JTabbedPane();
        jpUtilisateurs = new JPanel(new BorderLayout());
        jpAutoEcoles = new JPanel(new BorderLayout());
        //jpUtilisateurs = new PanelAdminOngletUtilisateur(obs);
      

       // jpAutoEcoles = new PanelAdminOngletAutoEcole(controller);

        jpRappels = new PanelAdminOngletRappel();
        nameofclass = "Admin";


        jLabelTitre.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabelTitre.setForeground(new java.awt.Color(51, 98, 140));
        jLabelTitre.setText("Administration");

        jtpAdmin.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jtpAdmin.setPreferredSize(new java.awt.Dimension(834, 600));


        jpUtilisateurs.add(panelTest);
        jpAutoEcoles.add(panelAutoEcole);


        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jtpAdmin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabelTitre)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelTitre)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 96, Short.MAX_VALUE)
                .addComponent(jtpAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, 608, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        
        jtpAdmin.addTab("<html><body  marginwidth=30 marginheight=2>Utilisateurs</body></html>\"", jpUtilisateurs);

        


        jtpAdmin.addTab("<html><body  marginwidth=30 marginheight=2>Auto-Ecoles</body></html>\"", jpAutoEcoles);



        jtpAdmin.addTab("<html><body  marginwidth=30 marginheight=2>Rappels</body></html>\"", jpRappels);

        jtpAdmin.getAccessibleContext().setAccessibleName("Utilisateurs");
    }// </editor-fold>


    
    
    public JPanel getVueUtilisateur(){
    	return jpUtilisateurs;
    }


    public String getNameOfClass(){
    	return nameofclass;
    }
    

    // Variables declaration - do not modify

    private javax.swing.JLabel jLabelTitre;
    private PanelAdminOngletAutoEcole panelAutoEcole;
    private PanelAdminOngletRappel jpRappels;
    private  JPanel jpUtilisateurs;
    private JPanel jpAutoEcoles;
    private PanelAdminOngletUtilisateur panelTest;
    private javax.swing.JTabbedPane jtpAdmin;
    private String nameofclass;


    // End of variables declaration
}
